import Vue from 'vue'
import Router from 'vue-router'

import Index from '@/components/Index'
import Login from '@/components/Login'
import Home from '@/components/Home'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      redirect: "/index",
      component: Home,
      children: [{
        path: 'index',
        name: 'Index',
        component: Index,
      },
      {
        path: "/user/login",
        name: "Login",
        component: Login
      },

      ]
    }
  ]
})
